I am a beginner of Bullet Panda3D, studying how to make a vehicle.
The example is “Bullet Vehicles”
panda3d.org/manual/index.php/Bullet_Vehicles
The source code is in
panda3d.org/manual/index.php/Bullet_Samples
In the code, I can not understand how to use TransformState.makePos(),
# Chassis
shape = BulletBoxShape(Vec3(0.6, 1.4, 0.5))
ts = TransformState.makePos(Point3(0, 0, z1))
<snip>
# Right rear wheel
np = loader.loadModel('models/yugo/yugotireR.egg')
np.reparentTo(self.worldNP)
self.addWheel(Point3( 0.70, -1.05, z2), False, np)
I changed z1 value above code to see the function of TransformState.makPos(0,0,z1).
I found followings;
- As z1 increases, the distance between the origin of vehicle body and the axis of wheels spreads.
- As z2 (wheel z position)increases, the axis of wheel goes up.
However, I can not understand the meaning of z1 and where are the origin of z1 and z2 ?
I guess this problem would be basic transformation, but I have no idea.