blob: f9faaac7301c5a2717924f52992039f053db7a30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
--- CCPhysicsBody.cpp 2016-12-29 13:42:38.000000000 -0400
+++ /opt/cocos2d-x-git/cocos/physics/CCPhysicsBody.cpp 2017-01-04 13:22:53.445318965 -0400
@@ -575,12 +575,6 @@
void PhysicsBody::setVelocity(const Vec2& velocity)
{
- if (!_dynamic)
- {
- CCLOG("physics warning: your can't set velocity for a static body.");
- return;
- }
-
cpBodySetVelocity(_cpBody, PhysicsHelper::point2cpv(velocity));
}
@@ -601,12 +595,6 @@
void PhysicsBody::setAngularVelocity(float velocity)
{
- if (!_dynamic)
- {
- CCLOG("physics warning: your can't set angular velocity for a static body.");
- return;
- }
-
cpBodySetAngularVelocity(_cpBody, velocity);
}
|