≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
how to change Box3d size
Posted by:
(you are not logged in)
Enter the missing letter in: "Internatio?al"
(you are not logged in)
Text:
[quote][b]boxbee[/b] wrote: I am testing for a collision between two objects. I can get the collision to work, but the issue is that the size of the BoundingBox seems to be a pinpoint size. Can I change the size of the BoundingBox? I want the objects to collide even if the edges collide... [code]function collisionTest() { player.updateAbsolutePosition(); boxnode2.updateAbsolutePosition(); var playerBB = player.getTransformedBoundingBox(); var boxnode2BB = boxnode2.getTransformedBoundingBox(); if (playerBB.intersectsWithBox(boxnode2BB)) alert('collision'); }[/code][/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