Entity/AddImpulse

From Blue Mars Developer Guidebook

Jump to: navigation, search


This is an Entity function

Contents

Overview

Function

AddImpulse(partId, pos, dir, impulse, scale, angularImpulse, massScale)
partId - use -1 for none
pos - object-local position where impulse is applied - nil corresponds to a zero vector
dir - impulse direction vector, does not need to be normalized
impulse - magnitude of the impulse
scale - optional, used only for character entities
angularImpulse - optional rotational impulse vector, cannot be zero vector
massScale - optional scale used for angularImpulse

Parameters

partId - use -1 for none
pos - object-local position where impulse is applied - nil corresponds to a zero vector
dir - impulse direction vector, does not need to be normalized
impulse - magnitude of the impulse
scale - optional, used only for character entities
angularImpulse - optional rotational impulse vector, cannot be zero vector
massScale - optional scale used for angularImpulse

Usage

Examples

Problems with this wiki page? Contact us either by: Support Email or Support Ticket System

Blue Mars Guidebook Privacy Policy
Blue Mars Guidebook Community Guidelines

Personal tools