Jump to content

Turret V2 script


YouGroove
 Share

Recommended Posts

Enjoy :

http://www.leadwerks.com/werkspace/files/file/512-turret-v2-heavy-simplified/

 

Ready to use, just drag and drop turret prefab on your level and launch it.

For collision, just add code to Collision function based on SetType of entity you want.

 

------------

 

This new version uses SetVelocity, instead of managing all movement using PhysicsSetPosition, so the code is very simplified, lot more short and easy to understand and movement is lot more smooth.

 

(if someone could test it to confirm all is ok ?)

Stop toying and make games

Link to comment
Share on other sites

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...