|Category||Farming Simulator 2009|
|B. Benjamin (unknown)||18.11.2009 17:44|
I'm trying to create a mod that allows the player to move Dynamic objects ( bales ). I'm using the "setRigidBody" function to change their "physics" and allow me to drive them. The problem is that, sometimes, when I'm using this function I get an error telling me that some objects can't recover their collisions. I checked several things :
- All objects are at scale 1 1 1
- There are no collision in the objects recovering their own.
- This bug happened in the Arcusin AutoStack sometimes too.
I was wondering if there is a special known bug that happens when using the "setRigidBody" function ?
Thanks a lot for your help,
|Christian Ammann - GIANTS Software||23.11.2009 11:00|
Can you post the engine error log here?
|B. Benjamin (unknown)||23.11.2009 17:59|
|Hi Mr Ammann,
Here is the error :
Physics: Collision1 failed. Scale not allowed for kinematic or dynamic objects.
Physics: Collision|Collision2 failed. Scale not allowed for kinematic or dynamic objects.
Physics: Collision|Collision3 failed. Scale not allowed for kinematic or dynamic objects.
Physics: Collision|Collision4 failed. Scale not allowed for kinematic or dynamic objects.
Physics: Collision|Collision5 failed. Scale not allowed for kinematic or dynamic objects.
Physics: strawbaleBaler failed. Scale not allowed for kinematic or dynamic objects.
This is strange because all the parts of the .i3d file of this "strawbaleBaler" are at scale 1 1 1 .
Thanks for your help.
|Christian Ammann - GIANTS Software||23.11.2009 18:34|
Scale in the whole hierarchy path of an object is not allowed. So if you link the strawbaleBaler to a object that already has scale or one of its parents its also not allowed. An object inherits the scale from its parent and thus also has scale even if it has its scale values to 1 1 1.
|B. Benjamin (unknown)||23.11.2009 19:05|
Thanks a lot for this quick answer.
What if only a small object of a trailer or a fork is scaled at 1.1 1 1 ?
For example : I've got a trailer. This one has 3 components all at scale 1 1 1. In the main part of this trailer, the main mesh and the wheels are scaled ( something like : 1 0.8 0.8 ) Could this cause the problem ?
I have to explain that this bales are attached on transformGroups in the trailer's model. These attachers are not in a scaled group. Here is my hierarchy :
- Main collision
-- Body Mesh ( 1.1 1 1 )
-- Wheels ( 1 0.8 0.8 )
-- Wheels ( 1 0.8 0.8 )
-- Attachers ( 1 1 1 )
--- Attacher1 ( 1 1 1 )
--- Attacher2 ( 1 1 1 )
Only the Body Mesh and Wheels are scaled to solve a little mesh mistake.
Note: Log in to post. Create a new account here.