Add a ramp
This commit is contained in:
parent
3bab8ac88e
commit
ef8245d712
@ -259,6 +259,17 @@ update_runtime_world :: proc(runtime_world: ^Runtime_World, dt: f32) {
|
||||
},
|
||||
)
|
||||
|
||||
physics.immediate_body(
|
||||
&world.physics_scene,
|
||||
&runtime_world.solver_state,
|
||||
#hash("ramp", "fnv32a"),
|
||||
physics.Body_Config {
|
||||
initial_pos = {0, 0, 0},
|
||||
initial_rot = linalg.quaternion_from_euler_angle_x_f32(-10 * math.RAD_PER_DEG),
|
||||
shape = physics.Shape_Box{size = {5, 1, 10}},
|
||||
},
|
||||
)
|
||||
|
||||
car_convex := assets.get_convex(&g_mem.assetman, "assets/car_convex.obj")
|
||||
|
||||
runtime_world.car_handle = physics.immediate_body(
|
||||
|
Loading…
x
Reference in New Issue
Block a user