Show / Hide Table of Contents

Class AnimalPositionUtils

Inheritance
System.Object
AnimalPositionUtils
Namespace: Eco.Simulation.Animals
Assembly: Eco.Simulation.dll
Syntax
public static class AnimalPositionUtils : Object

Methods

TryAdjustDeathPosition(Vector3)

Corrects death pos that can be gotten from current server val or requested from client in async mode (if needed) Goal: Make sure animal dies not in air.

Declaration
public static Vector3 TryAdjustDeathPosition(Vector3 rawPos)
Parameters
Type Name Description
System.Numerics.Vector3 rawPos
Returns
Type Description
System.Numerics.Vector3

UpdatePosFromController(Animal, Func<Vector3, Vector3>)

Asks the controlling player for the current position of the animal, if there is a controlling player.

Declaration
public static void UpdatePosFromController(Animal a, Func<Vector3, Vector3> processor = null)
Parameters
Type Name Description
Animal a
System.Func<System.Numerics.Vector3, System.Numerics.Vector3> processor
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾