≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
get sceneNode from Collision detection
Posted by:
(you are not logged in)
Enter the missing letter in: "Inter?ational"
(you are not logged in)
Text:
[quote][b][/b] wrote: Go through all scene nodes you are interested in, get the transformedBoundingBox of it (getTransformedBoundingBox()), and check for collision with it: (intersectsWithLine(lineStart, lineEnd). Depending on if you want the closest scene node only to be collided, you want to check all and get the closest hit scene node. Additionally, you can compare the distance between you and the collision point, and the collision point you get with scene.getCollisionGeometry().getCollisionPointWithLine, to see if you hit a wall before the scene node.[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact