Jump to content

Collision Camera??


Go to solution Solved by AggrorJorn,

Recommended Posts

Posted

I have a character with a third person camera, what can I do to make this camera collide with the elements of the stage? 

image.thumb.png.9ab80d771d101de72e1dbf8e6cd9d6b2.png

 

 

Astrocuco.thumb.png.c76e0fb3de2d6e437e7dca099625e11e.png

Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games

Posted

Where can I find Raycasting info in the documentation?

 

 

Astrocuco.thumb.png.c76e0fb3de2d6e437e7dca099625e11e.png

Murphy's Law: We don't fix bugs, we document them as features. – Murphy Games

  • Solution
Posted

You can do a camera pick (so the pick starts from the camera point of view) https://www.leadwerks.com/learn?page=API-Reference_Object_Entity_Camera_Pick.

The pick returns true or false. when pick is true, you can also retrieve information from the pickinfo object. In this object you find the position of the pick, normal etc. https://www.leadwerks.com/learn?page=API-Reference_Object_PickInfo

 

  • Thanks 1

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.

×
×
  • Create New...