Hello. The table “local_axis_a” in physics.JOINT_TYPE_SLIDER should look like what? Please give me an example.
local_axis_a
isn’t a table. It is a vector3
The code could look like this:
local properties = {}
properties.local_axis_a = vmath.vector3(1,0,0)
... more properties ...
physics.create_joint(physics.JOINT_TYPE_SLIDER, collisionobject_a,joint_id,position_a,collisionobject_b,position_b, properties)
2 Likes
Thanks!