it: physics bug 2
This commit is contained in:
@ -857,6 +857,12 @@ impl Default for PhysicsState{
|
||||
}
|
||||
|
||||
impl PhysicsState{
|
||||
pub fn new_at_position(position:Planar64Vec3)->Self{
|
||||
Self{
|
||||
body:Body::new(position,vec3::int(0,0,0),vec3::int(0,-100,0),Time::ZERO),
|
||||
..Self::default()
|
||||
}
|
||||
}
|
||||
pub fn camera_body(&self)->Body{
|
||||
Body{
|
||||
position:self.body.position+self.style.camera_offset,
|
||||
|
Reference in New Issue
Block a user