I need to rethink Collision vs Attributes
This commit is contained in:
parent
49931a40fc
commit
b897d4a662
@ -1103,8 +1103,7 @@ impl crate::instruction::InstructionConsumer<PhysicsInstruction> for PhysicsStat
|
|||||||
}
|
}
|
||||||
match ins.instruction{
|
match ins.instruction{
|
||||||
PhysicsInstruction::CollisionStart(c)=>{
|
PhysicsInstruction::CollisionStart(c)=>{
|
||||||
let model=c.model(&self.models).unwrap();
|
match self.models.attr(c.model_id()){
|
||||||
match &model.attributes{
|
|
||||||
PhysicsCollisionAttributes::Contact{contacting,general}=>{
|
PhysicsCollisionAttributes::Contact{contacting,general}=>{
|
||||||
let mut v=self.body.velocity;
|
let mut v=self.body.velocity;
|
||||||
match &contacting.contact_behaviour{
|
match &contacting.contact_behaviour{
|
||||||
|
Loading…
Reference in New Issue
Block a user