06-05-2024, 12:00 PM
I want to detect collisions with this character (which has nothing on him other than Obi bone)
Can it be done, or he should have Collider? I think Obi Bone or not, it has particles under it as all Obi things, so I can query its collisions with my character (my character has Obi Collider)
I want to debug the impulse.
The Golem can contact and push my character back, but this code (subscribed to character's solver.OnCollision event) returns no collisions.
Even though I enable Collision and Particle Collision collision / Queries on my character.
Can it be done, or he should have Collider? I think Obi Bone or not, it has particles under it as all Obi things, so I can query its collisions with my character (my character has Obi Collider)
I want to debug the impulse.
The Golem can contact and push my character back, but this code (subscribed to character's solver.OnCollision event) returns no collisions.
Code:
void Solver_OnCollision(object sender, ObiSolver.ObiCollisionEventArgs e)
{
foreach (Oni.Contact contact in e.contacts)
{
collisionsImpulse += contact.normalImpulse;
}
}
Even though I enable Collision and Particle Collision collision / Queries on my character.