This commit is contained in:
2026-03-08 16:50:54 +03:00
parent 406f685de2
commit f2277227cc
12 changed files with 176 additions and 13 deletions

View File

@@ -14,6 +14,15 @@ EMovementDir_Left = 8
EMovementDir_Right = 16
EMovementDir_Jump = 32
PhysicsFilter_None = 64
PhysicsFilter_Player = 128
PhysicsFilter_Triggers = 256
PhysicsFilter_Usable = 512
PhysicsFilter_NPC = 1024
PhysicsFilter_Obstacle = 2048
kPhysicsFilter_AllAux = PhysicsFilter_Player | PhysicsFilter_Triggers | PhysicsFilter_Usable
engine.error(string message)
engine.warning(string message)
engine.create_entity(string classname) -- return an table to the new entity
@@ -88,6 +97,10 @@ has_rigid_body() -- return boolean
create_box_body(float sizex, float sizey, float sizez, float mass, float friction, float damping, bool is_trigger, bool use_parameters)
create_sphere_body(float radius, float mass, float friction, float damping, bool is_trigger, bool use_parameters)
ForceBodyTransformUpdate() -- hack for forcing entity world transform to the rigid body
set_body_filter_group(integer group) -- set an physics group to the body
set_body_filter_mask(integer mask) -- set an physics group to the body
get_body_filter_group() -- return an current body group
get_body_filter_mask() -- return an current body mask
find_animation(string name) -- find an animation in the model
@@ -103,12 +116,13 @@ ActorBase methods:
activate_camera()
update_camera_look()
update_camera_movement(float nubmer)
create_player_body()
update_body_movement(float nubmer)
get_action() -- return a current action mode (ACTION_FIRE, ACTION_ALT_FIRE, ACTION_RELOAD, ACTION_USE)
get_movement() -- return a current movement mode (EMovementDir_None, ...)
on_ground() -- return boolean
is_noclip() -- return boolean
create_player_body(float radius, float height, float mass, float friction, float damping)
create_player_body_box(float x, float y, float z, float mass, float friction, float damping)
Light methods: