16-11-2021, 09:48 AM
(This post was last modified: 16-11-2021, 10:05 AM by josemendez.)
You’re doing
This doesn’t transform from solver to world space. It transforms from your object’s local space to world space, which is completely incorrect in this case.
It should be:
You seem to be unfamiliar with vector spaces. This is a basic concept upon which all 3D game engines -including, but not limited to Unity- are built, and required to be able to use Obi at all. I’d recommend learning about them, otherwise your experience using Obi (and making games, in general) will be a painfully frustrating one.
Code:
transform.TransformPoint(position);
This doesn’t transform from solver to world space. It transforms from your object’s local space to world space, which is completely incorrect in this case.
It should be:
Code:
solver.TransformPoint(position);
You seem to be unfamiliar with vector spaces. This is a basic concept upon which all 3D game engines -including, but not limited to Unity- are built, and required to be able to use Obi at all. I’d recommend learning about them, otherwise your experience using Obi (and making games, in general) will be a painfully frustrating one.