58 internal void Update(GameObject otherGO, Contact c) {
59 if (this.gameObject == null) {
60 this.gameObject = otherGO;
61 this.collider = this.gameObject.GetComponent<
TSCollider>();
62 this.rigidbody = this.gameObject.GetComponent<
TSRigidBody>();
63 this.transform = this.collider.tsTransform;
67 if (contacts[0] == null) {
71 this.relativeVelocity = c.CalculateRelativeVelocity();
73 contacts[0].
normal = c.Normal;
74 contacts[0].
point = c.p1;
TSRigidBody rigidbody
TSRigidBody of the body hit, if there is one attached
Represents a physical 3D rigid body.
TSCollider collider
TSCollider of the body hit
Abstract collider for 3D shapes.
TSTransform transform
TSTransform of the body hit
GameObject gameObject
GameObject of the body hit.
TSVector relativeVelocity
The TSTransform of the body hit.
Represents information about a contact between two 3D bodies.