forked from StrafesNET/strafe-client
probably need a better fix for this
This commit is contained in:
parent
44540853dd
commit
756648c2fb
@ -113,7 +113,7 @@ impl WalkEnum{
|
|||||||
}
|
}
|
||||||
impl WalkState{
|
impl WalkState{
|
||||||
fn ground(body:&Body,style:&StyleModifiers,gravity:Planar64Vec3,velocity:Planar64Vec3,contact:ContactCollision,normal:&Planar64Vec3)->(Self,Planar64Vec3){
|
fn ground(body:&Body,style:&StyleModifiers,gravity:Planar64Vec3,velocity:Planar64Vec3,contact:ContactCollision,normal:&Planar64Vec3)->(Self,Planar64Vec3){
|
||||||
let (walk_enum,a)=WalkEnum::with_target_velocity(body,style,velocity,&Planar64Vec3::Y,style.walk_speed,normal.dot(gravity));
|
let (walk_enum,a)=WalkEnum::with_target_velocity(body,style,velocity,&Planar64Vec3::Y,style.walk_speed,-normal.dot(gravity));
|
||||||
(Self{
|
(Self{
|
||||||
state:walk_enum,
|
state:walk_enum,
|
||||||
contact,
|
contact,
|
||||||
|
Loading…
Reference in New Issue
Block a user