#Is there any sample how to use ApplyImpulse extension?
1 messages · Page 1 of 1 (latest)
Check the Apply Impulse scene
https://github.com/Unity-Technologies/EntityComponentSystemSamples/tree/master/PhysicsSamples/Assets/9. Modify
1 messages · Page 1 of 1 (latest)
I want to spawn a bullet and apply force to it. I tried to use ApplyImpulse extension method but I get this error
'ref this' parameter must be a value type or a generic type constrained to struct
I am getting PhysicsVelocity and PhysicsMass components using entity manager.
Check the Apply Impulse scene
https://github.com/Unity-Technologies/EntityComponentSystemSamples/tree/master/PhysicsSamples/Assets/9. Modify