Jump to content

SetOmega not working


Recommended Posts

I tested this script and SetOmega don't work anymore.

 

How to test :

- Open any game level

- Create a new cylinder BSP with physics = "prop" and mass = "1"

- Create a new script and add the code below

- Attach script to the cylinder and run the game

 

function Script:UpdatePhysics()

 omeg  =  Vec3(0,0,0)
self.entity:SetOmega(omeg,true)   

end

 

When your character collides and pushes the cylinder, the cylinder rotates in any axis( SetOmega() has no effect).

Stop toying and make games

Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...