-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathphysac.h
More file actions
35 lines (31 loc) · 1.28 KB
/
physac.h
File metadata and controls
35 lines (31 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// This file is part of SmallBASIC
//
// Plugin for raylib games library - https://www.raylib.com/
//
// This program is distributed under the terms of the GPL v2.0 or later
// Download the GNU Public License (GPL) from www.gnu.org
//
// Copyright(C) 2020 Chris Warren-Smith
#pragma once
// in main.cpp
PhysicsBody get_physics_body(var_p_t var);
// create new PhysicsBody
void create(PhysicsBody body, var_p_t map, int id);
// PhysicsBody setters
void setEnabled(PhysicsBody body, bool value);
void setPosition(PhysicsBody body, Vector2 value);
void setVelocity(PhysicsBody body, Vector2 value);
void setForce(PhysicsBody body, Vector2 value);
void setAngularVelocity(PhysicsBody body, float value);
void setTorque(PhysicsBody body, float value);
void setOrient(PhysicsBody body, float value);
void setInertia(PhysicsBody body, float value);
void setInverseInertia(PhysicsBody body, float value);
void setMass(PhysicsBody body, float value);
void setInverseMass(PhysicsBody body, float value);
void setStaticFriction(PhysicsBody body, float value);
void setDynamicFriction(PhysicsBody body, float value);
void setRestitution(PhysicsBody body, float value);
void setUseGravity(PhysicsBody body, bool value);
void setIsGrounded(PhysicsBody body, bool value);
void setFreezeOrient(PhysicsBody body, bool value);