/** * Invokes this trigger */ public override void Invoke(Actor actor) { Rigidbody rigidbody = actor.GetComponent<Rigidbody>(); if(actor != null && rigidbody != null && actor.triggerCanChangeRigidbody) { rigidbody.useGravity = this.useGravity; rigidbody.isKinematic = this.isKinematic; if(this.changeVelocity) { rigidbody.velocity = this.velocity; } actor.OnRigidbodyChange(); } }