beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

AmmoCharacter Op

Ops.Physics.Ammo.AmmoCharacter


AmmoCharacter
Namespace: Ops.Physics.Ammo

Op author: pandur

Control and move a character in a physics environment


this OP allows you to create a capsule shaped collision body that will move around a 3D space of an Ammo World scene driven by user input commands.
This operator is designed to function in tandem with Ops.Physics.Ammo.AmmoCharacterFpsCamera and Ops.Physics.Ammo.AmmoWorld.



Inputs

Update (Trigger)
Radius (Number)

radius of the capsule collision mesh

View index (integer /Number)

1st person or 3rd person mode

Height (Number)

heigh of capsule collision mesh

Mass (Number)

weight of capsule

Name (String)

name of this capsule to be used for collision checking

Activate (Trigger)

wake up this object

Move X+ (boolean /Number)
Move X- (boolean /Number)
Move Y+ (boolean /Number)
Move Y- (boolean /Number)
Move Z+ (boolean /Number)
Move Z- (boolean /Number)
Dir X (Number)

X axis rotation value (from AmmoCharacterFpsCamera for example)

Dir Y (Number)

Y axis ratation value (from AmmoCharacterFpsCamera for example)

Dir Z (Number)

Z axis rotation value (from AmmoCharacterFpsCamera for example)

Reset

Set Pos X (Number)
Set Pos Y (Number)
Set Pos Z (Number)
Reset (Trigger)

reset location

Speed (Number)

speed at which this object will travel on user input booleans

Add Velocity Y (Number)

Y axis velocity impulse, for a jump

Outputs

next (Trigger)
Position X (Number)

current X location of capsule

Position Y (Number)

current Y location of capsule

Position Z (Number)

current Z location of capsule

Transformed (Trigger)

resize meshes underneath to dimensions of this object

Caught a mistake or want to contribute to the documentation?

Edit Documentation 

cables room character controller example

Open Example In Editor

Patches using AmmoCharacter

Changelog


created op
2022-03-14 - pandur
Ops.User.pandur.AmmoCharacter renamed to Ops.Dev.AmmoCharacter
2022-03-14 - pandur
Ops.Dev.AmmoCharacter renamed to Ops.Physics.Ammo.AmmoCharacter
2022-05-31 - pandur