Jump to content

babylon.js - impostor - collider - debug


ian
 Share

Recommended Posts

I don't think so.

Look at 

Differences between (if we debug bounding Boxes ) Bridge have 

(1. this first example I think that BoxImpostor is shifted because Bridge's origion/pivot is not in center but in center of lower Bridge's face. In this excample I think BoxImpostor is not around Bridge but is shifted because of Bridge's origin)

http://www.babylonjs-playground.com/#MBFUI#3

and
(2. this bounding Box is ok because Bridge's origin is in center of Bridge )

http://www.babylonjs-playground.com/#MBFUI#5

 

Link to comment
Share on other sites

  • 9 months later...

@adam

Can you explain me what exactly this code do? 

What means shape.halfExtents

 

and why you do 

mesh.scaling.x = shape.halfExtents.x * 2;
mesh.scaling.y = shape.halfExtents.y * 2;
mesh.scaling.z = shape.halfExtents.z * 2;

and

mesh.scaling.x = shape.boundingSphereRadius * 2;
mesh.scaling.y = shape.boundingSphereRadius * 2;
mesh.scaling.z = shape.boundingSphereRadius * 2;

why number 2 ?

 

 greetings

Ian

Link to comment
Share on other sites

This your qul example could be included in Inspector for enable/disable (hide/show) physics impostors in scene.
Now Inspector does not have any debug options for physics impostors.

What do you think @Deltakosh @RaananW @Wingnut
Who build Inspector(babylonJS debuger) ?
So we can ping who build Inspector to include physics impostor debuging

What are your opinion about adding physics impostor debuging in Inspector of BabylonJS.

Greetings
Ian

Link to comment
Share on other sites

5 minutes ago, ian said:

This your qul example could be included in Inspector for enable/disable (hide/show) physics impostors in scene.
Now Inspector does not have any debug options for physics impostors.

When I said debugger, I was referring to inspector.

Link to comment
Share on other sites

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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...