YouGroove Posted June 28, 2015 Share Posted June 28, 2015 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). Quote Stop toying and make games Link to comment Share on other sites More sharing options...
YouGroove Posted June 29, 2015 Author Share Posted June 29, 2015 Here is an example map : - put the map file on your map directory - put omega.lua on your Scripts/Objects directory - run the game The cube will rotate to the ground slowly, like SetOmega() was overridden each frame Omega.zip Quote Stop toying and make games Link to comment Share on other sites More sharing options...
YouGroove Posted September 29, 2015 Author Share Posted September 29, 2015 SetOmgea blocks rotation only if your physic model has SetGravityMode to false. Thread can be closed. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Recommended Posts
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.