Jump to content
tipforeveryone

What are Script:Collision parametters?

Recommended Posts

Script:Collision(entity, position, normal, speed)

What exact are those parameters usage ? (Entity, position, normal, speed)

I try to search in Learn section but no luck

Share this post


Link to post

entity is the one you collided with

position is the position of the entity when collision happened

normal is the direction of the collision

speed is the speed of  the collission entity 

  • Like 1

Share this post


Link to post

Speed is the speed of the collision, the magnitude of the point velocity of the collision point on one entity relative to the other.

Bigger speed = hit harder.

  • Like 1

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

×
×
  • Create New...