Enfusion Script API
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TransformResetParams Interface Reference

Read-only wrapper for GenericEntity::OnTransformResetImpl and GenericComponent::OnTransformReset parameters. More...

Inheritance diagram for TransformResetParams:
[legend]

Public Member Functions

proto external vector GetNewVelocity ()
 Gets initial velocity of the owner entity after the transform reset.
 
proto external bool IsCorrection ()
 Gets a hint whether the transform was reset due to its correction (e.g.
 
- Public Member Functions inherited from pointer
proto string ToString ()
 

Detailed Description

Read-only wrapper for GenericEntity::OnTransformResetImpl and GenericComponent::OnTransformReset parameters.

Member Function Documentation

◆ GetNewVelocity()

proto external vector TransformResetParams.GetNewVelocity ( )

Gets initial velocity of the owner entity after the transform reset.

Useful e.g. when velocity is computed using previous position which is invalid after transform reset.

◆ IsCorrection()

proto external bool TransformResetParams.IsCorrection ( )

Gets a hint whether the transform was reset due to its correction (e.g.

by net-code), i.e. not a placement / teleport.


The documentation for this interface was generated from the following file: