Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Typos in Physics #12980

Merged
merged 1 commit into from
Sep 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/dev/core/src/Physics/Plugins/ammoJSPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ export class AmmoJSPlugin implements IPhysicsEnginePlugin {
}

/**
* Sets the physics body position/rotation from the babylon mesh's position/rotation
* Sets the mesh body position/rotation from the babylon impostor
* @param impostor imposter containing the physics body and babylon object
*/
public setTransformationFromPhysicsBody(impostor: PhysicsImpostor) {
Expand Down
2 changes: 1 addition & 1 deletion packages/dev/core/src/Physics/Plugins/oimoJSPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class OimoJSPlugin implements IPhysicsEnginePlugin {
impostor.physicsBody.applyImpulse(contactPoint.scale(this.world.invScale), force.scale(this.world.invScale * mass));
}
public applyForce(impostor: PhysicsImpostor, force: Vector3, contactPoint: Vector3) {
Logger.Warn("Oimo doesn't support applying force. Using impule instead.");
Logger.Warn("Oimo doesn't support applying force. Using impulse instead.");
this.applyImpulse(impostor, force, contactPoint);
}
public generatePhysicsBody(impostor: PhysicsImpostor) {
Expand Down