57 internal void Update(GameObject otherGO, Contact c) {
58 if (this.gameObject == null) {
59 this.gameObject = otherGO;
60 this.collider = this.gameObject.GetComponent<
TSCollider>();
61 this.rigidbody = this.gameObject.GetComponent<
TSRigidBody>();
62 this.transform = this.collider.tsTransform;
66 if (contacts[0] == null) {
70 this.relativeVelocity = c.CalculateRelativeVelocity();
72 contacts[0].
normal = c.Normal;
73 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.