Static Group can get smaller but not bigger
Posted: Sat Nov 24, 2018 2:03 pm
Hi
I am currently trying to integrate Bepu into our engine. It works pretty well so far but I face a problem with static objects.
Short about my setup.
The engine is component based where each entity can have multiple components. A space object is represented by one engine Entity(let me call them actors to differentiate between the physics entities).
Each Actor can have multiple colliders which are represented by components. With all of the collider components an actor has I create a Compound Body for a dynamic object or a StaticGroup for a static object which I add afterwards to the space.
If I want to resize a collider for example this already works well with dynamic objects as I just need to change the properties of the collider which will update the shape.
Now the problem with static objects is that this does only seam to work when making a shape smaller but not bigger compared to the size they were added to the space.
If I remove the object from the space and add it again it works but I thought you can change the shape of a static collidable without readding it to the space or is my assumption wrong here?
I would be grateful for any help.
PS I am using bepu v1
I am currently trying to integrate Bepu into our engine. It works pretty well so far but I face a problem with static objects.
Short about my setup.
The engine is component based where each entity can have multiple components. A space object is represented by one engine Entity(let me call them actors to differentiate between the physics entities).
Each Actor can have multiple colliders which are represented by components. With all of the collider components an actor has I create a Compound Body for a dynamic object or a StaticGroup for a static object which I add afterwards to the space.
If I want to resize a collider for example this already works well with dynamic objects as I just need to change the properties of the collider which will update the shape.
Now the problem with static objects is that this does only seam to work when making a shape smaller but not bigger compared to the size they were added to the space.
If I remove the object from the space and add it again it works but I thought you can change the shape of a static collidable without readding it to the space or is my assumption wrong here?
I would be grateful for any help.
PS I am using bepu v1