YouGroove Posted April 14, 2014 Share Posted April 14, 2014 I have particle object not orienting to a direction i give to it using SetRotation() I dug on FPSWeapon.lua and i found : self.emitter[2] = tolua.cast(self.emitter[2],"Emitter") What is tolua.cast ? Does it manages emitter orientation ? How to orient particle to some direction ? Quote Stop toying and make games Link to comment Share on other sites More sharing options...
shadmar Posted April 14, 2014 Share Posted April 14, 2014 To use emitter methods on emitter[2] it needs to have the base class cast. Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
Admin Posted April 14, 2014 Share Posted April 14, 2014 Emitter::SetVelocity will do the other part. 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.