Is it possible to make a single direction collider with Havok? Basically I want a ball to be able to pass through a collider one direction and not in another.
![]()
I wonder if one of the events triggers after collision detected and impulse calculated but before collision impulse is applied.
If so, maybe the “impulseApplied” field can be zeroed out.
Something like
onCollisionObservable.add(a=>{
// is body in one-way group?
// find havok buffer on body
// set impulseApplied in floatBuf to zero.
// Location indicated in CollisionEvent.readToRef():
// eventOut.impulseApplied = floatBuf[offB + 13 + 3];
});
That funny Roland, my first instinct was to compare velocity to the contact normal and do some sort of collision negation through that. Cool Ill investigate that method.
I hate that we should ask Claude or ChatGPT before posting on here because then it feels like nobody else gains from that conversation.
OMG, I never thought about this! You’re totally right! Let’s keep the conversation on the forum. That way it helps everyone and keeps us from going brain-dead ![]()
Sharing is caring…
Got it!
Im sure there are better ways to do this, but this helped me dig into how to actually trigger events and filters.
Nice! Bookmarked. ![]()