Interface IFreezable
Physics objects that can be freezed, so unity physics wont affect them anymore. Sample: rubble, which after some time of physic simulation gonna to be attach to something and no longer move.
This is used mainly for optimizations reasons, so it wont simulate all rubble objects all the time, but there are also another case for that: by example, prevent shop truck from be moved away by physic simulation.
Assembly: Eco.Gameplay.dll
Syntax
public interface IFreezable : INetObject, IEcoObject
Properties
GroundDistance
Declaration
float GroundDistance { get; set; }
Property Value
Type |
Description |
System.Single |
|
NetEntity
Declaration
NetPhysicsEntity NetEntity { get; }
Property Value
Methods
Freeze(Vector3, Quaternion, Single)
Declaration
virtual void Freeze(Vector3 position, Quaternion rotation, float groundDistance)
Parameters
Type |
Name |
Description |
System.Numerics.Vector3 |
position |
|
Quaternion |
rotation |
|
System.Single |
groundDistance |
|
Unfreeze(Player, Boolean)
Declaration
virtual void Unfreeze(Player player, bool forceChangeOwner)
Parameters
Type |
Name |
Description |
Player |
player |
|
System.Boolean |
forceChangeOwner |
|
Extension Methods