ambiera home ambiera home

Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name:  Password:
Ambiera Forum > CopperLicht
how to change Box3d size
Author Text

Registered User
2013-01-13 00:21:13

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

function collisionTest() {

var playerBB = player.getTransformedBoundingBox();
var boxnode2BB = boxnode2.getTransformedBoundingBox();

if (playerBB.intersectsWithBox(boxnode2BB))

Registered User
2013-01-14 20:59:29

I figured it out... I was getting a handle to the Transformed Bounding Box and trying to change the size from that. You need to make sure you get a handle to the Bounding Box.

This is what I did:

yourObject.getBoundingBox(new CL3D.Box3d()).MaxEdge = new CL3D.Vect3d(5,5,5);

Create reply:

Posted by: (you are not logged in)

Enter the missing letter in: "Intern?tional" (you are not logged in)




Forum Codes

Feature Code
Link [url] [/url]
Bold [b]bold text[/b]
Image [img][/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]



Software: Ambiera Light Forum. © 2008-2019 Nikolaus Gebhardt, Ambiera e.U.