push

push

collidable

Details

Kode wheel segment Physics
Style Control
Modifiers strength / strong / weak / toward /away from / in direction / normal / with mass / max distance /min distance / world relative / camera relative / object relative
Primarily WHEN/DO DO
Pre-made brains that use it Unknown

Physics > push

Description

This tile is used to push an object. Used with modifiers and paired with another object, this tile will enable your character to push other (non fixed) objects around in the world.

Example Code

WHEN [bump] [IWP:pushblock] DO [push][ it][away from][me]

 

Modifiers

strength: Paired with a number this controls the strength of the push, and therefore how far the object will travel.

strong: A pre set strength for the push (Approx equivalent to strength 2)

weak: A pre set strength for the push (Approx equivalent to  strength 0.25)

toward: Paired with an object or vector. The object will be pushed towards it, regardless of which side it is pushed.

away from: Paired with an object or vector. Objects will only move easily in the opposite direction to the paired direction, and will not move when pushed towards the paired direction.

in direction: Paired with a direction tile. The object will move in that direction, regardless of which side it is pushed.

normal: A pre set strength for the push (Approx equivalent to strength 0.5)

with mass: Can be paired with a number of left on its own. Adds mass to the object, so that it does not travel as far.

max distance: Paired with a number this sets the maximum distance an object will travel when pushed, regardless of strength.

min distance: Paired with a number this sets the minimum distance an object will travel when pushed, regardless of strength

world relative: Not 100% sure about this. Paired with a world relative direction (north, east etc) the object will travel in this direction when pushed. However, without this tile and just use the direction, you get the same effect.

camera relative: Paired with a camera relative direction such as camera forward, camera right etc. This object will move in the direction specified in relation to the camera forward vector of the object.

object relative: Paired with a direction such as forward, left etc. This object will move in the direction specified in relation to the forward vector of the object.

 

Other Uses

Comments are closed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: