DellaFree Posted September 26, 2016 Share Posted September 26, 2016 Hi everybody, I made this simple playground : http://www.babylonjs-playground.com/#17QEYE#5 I would like to know if it's possible to create the same effect without using the physics engine. The idea is that the bullets are shot in the same direction, where the sphere is moving. Any ideas? Thanks a lot, cheers, DellaFree Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 26, 2016 Share Posted September 26, 2016 Hello you just need the Z rotation (zAngle) of your mesh in this case What you want is to move the bullet in this direction (pseudo code): vector3(0, 1, 0) * matrix.RotationZ(zAngle) Quote 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.