implement PhysicsState
This commit is contained in:
parent
b6b63b4c85
commit
4616fd7b3b
@ -420,9 +420,9 @@ impl Body {
|
|||||||
impl Default for PhysicsState{
|
impl Default for PhysicsState{
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self{
|
Self{
|
||||||
spawn_point:glam::vec3(0.0,50.0,0.0),
|
|
||||||
body: Body::with_pva(glam::vec3(0.0,50.0,0.0),glam::vec3(0.0,0.0,0.0),glam::vec3(0.0,-100.0,0.0)),
|
|
||||||
time: 0,
|
time: 0,
|
||||||
|
spawn_point:Planar64Vec3::new(0,50,0),
|
||||||
|
body: Body::with_pva(Planar64Vec3::new(0,50,0),Planar64Vec3::new(0,0,0),Planar64Vec3::new(0,-100,0)),
|
||||||
style:StyleModifiers::default(),
|
style:StyleModifiers::default(),
|
||||||
grounded: false,
|
grounded: false,
|
||||||
contacts: std::collections::HashMap::new(),
|
contacts: std::collections::HashMap::new(),
|
||||||
@ -430,7 +430,7 @@ impl Default for PhysicsState{
|
|||||||
models: Vec::new(),
|
models: Vec::new(),
|
||||||
bvh:crate::bvh::BvhNode::default(),
|
bvh:crate::bvh::BvhNode::default(),
|
||||||
walk: WalkState::new(),
|
walk: WalkState::new(),
|
||||||
camera: PhysicsCamera::from_offset(glam::vec3(0.0,4.5-2.5,0.0)),
|
camera: PhysicsCamera::from_offset(Planar64Vec3::new(0,2,0)),//4.5-2.5=2
|
||||||
next_mouse: MouseState::default(),
|
next_mouse: MouseState::default(),
|
||||||
controls: 0,
|
controls: 0,
|
||||||
world:WorldState{},
|
world:WorldState{},
|
||||||
|
Loading…
Reference in New Issue
Block a user