ProtoFlux:Character Gravity: Difference between revisions

From Resonite Wiki
Created page for the Character Gravity node.
 
Removed the "click here" sentence. Reassigned link appropriately.
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:
|}}
|}}


The <code>Character Gravity</code> node returns a referenced Character Controller's gravity. The gravity output is used when you want the character controller's current gravity it is aiming for when simulating. The actual gravity is what the character controller is simulating now, and can be varied when using it dependiong on the settings on the character controller (specifically the gravity scale field). To learn more about the character controller component, click [[Component:CharacterController|here]].
The <code>Character Gravity</code> node returns a referenced [[Component:CharacterController|character controller]] gravity. The gravity output is used when you want the character controller's current gravity it is aiming for when simulating. The actual gravity is what the character controller is simulating now, and can be varied when using it dependiong on the settings on the character controller (specifically the gravity scale field).


== Usage ==
== Usage ==
Line 34: Line 34:


The actual gravity this character controller is simulating.
The actual gravity this character controller is simulating.
[[Category:ProtoFlux:Physics]]

Latest revision as of 16:40, 16 April 2024

Character Gravity
Character
Gravity
Actual Gravity
Physics

The Character Gravity node returns a referenced character controller gravity. The gravity output is used when you want the character controller's current gravity it is aiming for when simulating. The actual gravity is what the character controller is simulating now, and can be varied when using it dependiong on the settings on the character controller (specifically the gravity scale field).

Usage

You can use the actual gravity output of this node to control how gravity works for certain character controllers that need to have different values effect them in different ways (using both the user's transform scale and the component's gravity scale). You can set the simulating user's gravity scale to cubic and have their gravity be effected by their size. Using Linear will keep the gravity the same no matter the size of the user. (Tested on users jumping while changing the gravity scale field in the character controller component).

Inputs

Character (Character Controller)

The character controller reference.

Outputs

Gravity (float3)

The current gravity from this character controller that it "should" try to simulate.

Actual Gravity (float3)

The actual gravity this character controller is simulating.