Alter Physics Properties
Alter Physics Properties¶
Modifies the physical properties of a physics object, including speed, size, gravity multiplier, and collision behavior.
Properties¶
System¶
| Name | Explanation | Type |
|---|---|---|
| Gravity Multiplier X | The X component of the gravity multiplier applied to the physics object. | Variable or Value |
| Gravity Multiplier X Enabled | Enables or disables the gravity multiplier X component for this command. | Toggle |
| Gravity Multiplier Y | The Y component of the gravity multiplier applied to the physics object. | Variable or Value |
| Gravity Multiplier Y Enabled | Enables or disables the gravity multiplier Y component for this command. | Toggle |
| Gravity Multiplier Z | The Z component of the gravity multiplier applied to the physics object. | Variable or Value |
| Gravity Multiplier Z Enabled | Enables or disables the gravity multiplier Z component for this command. | Toggle |
| Ignore Entity Collision | When enabled, the physics object will not collide with other entities. | Switch or Value |
| Ignore Entity Collision Enabled | Enables or disables the ignore entity collision property for this command. | Toggle |
| Ignore Obstacles | When enabled, the physics object will ignore tile tags and collisions imposed by tiles. | Switch or Value |
| Ignore Obstacles Enabled | Enables or disables the ignore obstacles property for this command. | Toggle |
| Ignores Gravity | When enabled, the physics object will not be affected by gravity. | Switch or Value |
| Ignores Gravity Enabled | Enables or disables the ignores gravity property for this command. | Toggle |
| Is Clipping | When enabled, the physics object will clip through other objects. | Switch or Value |
| Is Clipping Enabled | Enables or disables the clipping property for this command. | Toggle |
| Is Static | When enabled, the physics object becomes a static body that does not move. | Switch or Value |
| Is Static Enabled | Enables or disables the static body property for this command. | Toggle |
| Size X | The X component of the physics object's size. | Variable or Value |
| Size X Enabled | Enables or disables the size X component for this command. | Toggle |
| Size Y | The Y component of the physics object's size. | Variable or Value |
| Size Y Enabled | Enables or disables the size Y component for this command. | Toggle |
| Size Z | The Z component of the physics object's size. | Variable or Value |
| Size Z Enabled | Enables or disables the size Z component for this command. | Toggle |
| Speed X | The X component of the physics object's speed. | Variable or Value |
| Speed X Enabled | Enables or disables the speed X component for this command. | Toggle |
| Speed Y | The Y component of the physics object's speed. | Variable or Value |
| Speed Y Enabled | Enables or disables the speed Y component for this command. | Toggle |
| Speed Z | The Z component of the physics object's speed. | Variable or Value |
| Speed Z Enabled | Enables or disables the speed Z component for this command. | Toggle |
| Target | The physics object to target with this command. | Physics Object Reference |
| Use As Delta Values | When enabled, the specified values are added to the current values. When disabled, the specified values replace the current values. | Toggle |
Examples¶
Change Entity Speed as Delta¶
Increases the X speed of entity 0 by the value stored in global variable 0.
{"Data":{"GravityMultiplierX":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"GravityMultiplierY":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"GravityMultiplierZ":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"IgnoreCollisions":{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"Value":false,"SwitchIndex":0,"Metadata":null},"IgnoreGravity":{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"Value":false,"SwitchIndex":0,"Metadata":null},"IgnoreObstacles":{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"Value":false,"SwitchIndex":0,"Metadata":null},"IsClipping":{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"Value":false,"SwitchIndex":0,"Metadata":null},"IsStatic":{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"Value":false,"SwitchIndex":0,"Metadata":null},"IsDeltaOperation":true,"IsIgnoreCollisionsEnabled":false,"IsIgnoreGravityEnabled":false,"IsIgnoreObstaclesEnabled":false,"IsClippingEnabled":false,"IsGravityMultiplierXEnabled":false,"IsGravityMultiplierYEnabled":false,"IsGravityMultiplierZEnabled":false,"IsStaticEnabled":false,"IsSizeXEnabled":false,"IsSizeYEnabled":false,"IsSizeZEnabled":false,"IsSpeedXEnabled":true,"IsSpeedYEnabled":false,"IsSpeedZEnabled":false,"SizeX":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"SizeY":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"SizeZ":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"SpeedX":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"0","VariableIndex":0,"Metadata":null},"SpeedY":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"SpeedZ":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Target":{"IsSelf":false,"IsPartyMember":false,"IsEntity":true,"IsUniqueID":false,"IsDoodad":false,"Identifier":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null}},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Physics.AlterPhysicsPropertiesCommand"}
Disable Gravity on an Entity¶
Makes entity 0 ignore gravity.
{"Data":{"GravityMultiplierX":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"GravityMultiplierY":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"GravityMultiplierZ":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"IgnoreCollisions":{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"Value":false,"SwitchIndex":0,"Metadata":null},"IgnoreGravity":{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"Value":true,"SwitchIndex":0,"Metadata":null},"IgnoreObstacles":{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"Value":false,"SwitchIndex":0,"Metadata":null},"IsClipping":{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"Value":false,"SwitchIndex":0,"Metadata":null},"IsStatic":{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"Value":false,"SwitchIndex":0,"Metadata":null},"IsDeltaOperation":true,"IsIgnoreCollisionsEnabled":false,"IsIgnoreGravityEnabled":true,"IsIgnoreObstaclesEnabled":false,"IsClippingEnabled":false,"IsGravityMultiplierXEnabled":false,"IsGravityMultiplierYEnabled":false,"IsGravityMultiplierZEnabled":false,"IsStaticEnabled":false,"IsSizeXEnabled":false,"IsSizeYEnabled":false,"IsSizeZEnabled":false,"IsSpeedXEnabled":false,"IsSpeedYEnabled":false,"IsSpeedZEnabled":false,"SizeX":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"SizeY":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"SizeZ":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"SpeedX":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"SpeedY":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"SpeedZ":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Target":{"IsSelf":false,"IsPartyMember":false,"IsEntity":true,"IsUniqueID":false,"IsDoodad":false,"Identifier":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null}},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Physics.AlterPhysicsPropertiesCommand"}
Set Entity Size Absolutely¶
Sets the size of entity 0 to exact values rather than adding to the current size, using the set flag.
{"Data":{"GravityMultiplierX":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"GravityMultiplierY":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"GravityMultiplierZ":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"IgnoreCollisions":{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"Value":false,"SwitchIndex":0,"Metadata":null},"IgnoreGravity":{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"Value":false,"SwitchIndex":0,"Metadata":null},"IgnoreObstacles":{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"Value":false,"SwitchIndex":0,"Metadata":null},"IsClipping":{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"Value":false,"SwitchIndex":0,"Metadata":null},"IsStatic":{"IsGlobalSwitch":false,"IsLocalSwitch":false,"IsValue":true,"Value":false,"SwitchIndex":0,"Metadata":null},"IsDeltaOperation":false,"IsIgnoreCollisionsEnabled":false,"IsIgnoreGravityEnabled":false,"IsIgnoreObstaclesEnabled":false,"IsClippingEnabled":false,"IsGravityMultiplierXEnabled":false,"IsGravityMultiplierYEnabled":false,"IsGravityMultiplierZEnabled":false,"IsStaticEnabled":false,"IsSizeXEnabled":true,"IsSizeYEnabled":true,"IsSizeZEnabled":false,"IsSpeedXEnabled":false,"IsSpeedYEnabled":false,"IsSpeedZEnabled":false,"SizeX":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"0","VariableIndex":0,"Metadata":null},"SizeY":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"0","VariableIndex":1,"Metadata":null},"SizeZ":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"SpeedX":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"SpeedY":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"SpeedZ":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Target":{"IsSelf":false,"IsPartyMember":false,"IsEntity":true,"IsUniqueID":false,"IsDoodad":false,"Identifier":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null}},"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Physics.AlterPhysicsPropertiesCommand"}