Jump to content

how to resize a sphere, that has physics applied?


Recommended Posts

how to resize a sphere, that has physics applied?


this is how I'm doing it now:

var velo= sphere.physicsImpostor.getLinearVelocity() ;
var velo= sphere.setLinearVelocity(velo);

but I don't think that this is good practice, so I'm loooking for a method like:


Link to comment
Share on other sites

You will have to recreate the physics body

You could dispose the current impostor and recreate one, or you could call impostor.forceUpdate() which will do it for you. 

If you know what engine you are using, and the engine supports it, you could use the physics body, but this is against the single rule of physics engine, which is rigidity. So expect interesting results

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.

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.


  • Recently Browsing   0 members

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