Struct FrameContact#

Struct Documentation#

struct FrameContact#

Data for a contact between a pair of Frames.

Public Functions

void swapFrames()#

Swap the frames so frame 1 becomes frame 2 and frame 2 becomes frame 1.

Public Members

Karana::Core::ks_ptr<Karana::Frame::Frame> frame_1#

The first Frame involved in the contact.

Karana::Core::ks_ptr<Karana::Scene::CollisionScenePart> part_1#

The first CollisionScenePart involved in the contact.

Karana::Math::Vec3 location_1#

Contact location on the first Frame relative to the first Frame and expressed in the first frame

Karana::Math::Vec3 normal_1#

Contact normal expressed in the first Frame. The contact normal points from point 2 to point 1, i.e., opposite of the force direction for contact 1.

Karana::Core::ks_ptr<Karana::Frame::Frame> frame_2#

The second Frame involved in the contact.

Karana::Core::ks_ptr<Karana::Scene::CollisionScenePart> part_2#

The second CollisionScenePart involved in the contact.

Karana::Math::Vec3 location_2#

Contact location on the second Frame relative to the second Frame and expressed in the second frame

Karana::Math::Vec3 normal_2#

Contact normal expressed in the second Frame. The contact normal points from point 2 to point 1, i.e., in the force direction for contact 2.

double penetration#

Maximum penetration distance.