Hi there,
I tried to replace SceneAvatar.Gravity := true; because it is deprecated.
I have made one Rigidbody for the Level and one for the Avatar.
If AvatarBody.Dynamic:=false; I can see no gravity!
If AvatarBody.Dynamic:=true; it looks like gravity is OK, but I’m not able to move the Avatar.
In the documentation I have found this:
In this case you cannot
change the @link(TCastleTransform.Translation) and other
transformation properties of the related TCastleTransform
after assigning @link(TCastleTransform.RigidBody).
They are under the control of the physics engine.
You can still reliably read them.
Is there an other or better way to do? The old simple physics work good for me.
Or do I something wrong?
Thanks in advance
Didi