org.jbox2d.dynamics.Body.isBullet()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(164)

本文整理了Java中org.jbox2d.dynamics.Body.isBullet()方法的一些代码示例,展示了Body.isBullet()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Body.isBullet()方法的具体详情如下:
包路径:org.jbox2d.dynamics.Body
类名称:Body
方法名:isBullet

Body.isBullet介绍

[英]Is this body treated like a bullet for continuous collision detection?
[中]这具尸体是否被当作连续碰撞检测的子弹?

代码示例

代码示例来源:origin: libgdx/libgdx

/** Is this body treated like a bullet for continuous collision detection? */
public boolean isBullet () {
  return body.isBullet();
}

代码示例来源:origin: libgdx/libgdx

boolean collideA = bA.isBullet() || typeA != BodyType.DYNAMIC;
boolean collideB = bB.isBullet() || typeB != BodyType.DYNAMIC;
 if (other.m_type == BodyType.DYNAMIC && body.isBullet() == false
   && other.isBullet() == false) {
  continue;

代码示例来源:origin: jbox2d/jbox2d

boolean collideA = bA.isBullet() || typeA != BodyType.DYNAMIC;
boolean collideB = bB.isBullet() || typeB != BodyType.DYNAMIC;
 if (other.m_type == BodyType.DYNAMIC && body.isBullet() == false
   && other.isBullet() == false) {
  continue;

代码示例来源:origin: jbox2d/jbox2d

builder.setGravityScale(argBody.getGravityScale());
builder.setBullet(argBody.isBullet());
builder.setAllowSleep(argBody.isSleepingAllowed());
builder.setAwake(argBody.isAwake());

代码示例来源:origin: andmizi/MobikeTags

boolean collideA = bA.isBullet() || typeA != BodyType.DYNAMIC;
boolean collideB = bB.isBullet() || typeB != BodyType.DYNAMIC;
 if (other.m_type == BodyType.DYNAMIC && body.isBullet() == false
   && other.isBullet() == false) {
  continue;

代码示例来源:origin: org.jbox2d/jbox2d-library

boolean collideA = bA.isBullet() || typeA != BodyType.DYNAMIC;
boolean collideB = bB.isBullet() || typeB != BodyType.DYNAMIC;
 if (other.m_type == BodyType.DYNAMIC && body.isBullet() == false
   && other.isBullet() == false) {
  continue;

代码示例来源:origin: com.github.almasb/fxgl-physics

boolean collideA = bA.isBullet() || typeA != BodyType.DYNAMIC;
boolean collideB = bB.isBullet() || typeB != BodyType.DYNAMIC;
  if (other.getType() == BodyType.DYNAMIC && !body.isBullet() && !other.isBullet()) {
    continue;

相关文章